package com.lfnyxy.common.dto;

import java.util.ArrayList;
import java.util.List;

public class PagedDataTable<T> {
    private int recordsTotal;
    private int recordsFiltered;
    private List<T> data = new ArrayList<T>();

    public PagedDataTable() {
    }

    public PagedDataTable(int recordsTotal, int recordsFiltered, List<T> data) {
        this.recordsTotal = recordsTotal;
        this.recordsFiltered = recordsFiltered;
        this.data = data;
    }

    public PagedDataTable(int recordsTotal, List<T> data) {
        this.recordsTotal = recordsTotal;
        this.recordsFiltered = recordsTotal;
        this.data = data;
    }

    public int getRecordsTotal() {
        return recordsTotal;
    }

    public void setRecordsTotal(int recordsTotal) {
        this.recordsTotal = recordsTotal;
    }

    public int getRecordsFiltered() {
        return recordsFiltered;
    }

    public void setRecordsFiltered(int recordsFiltered) {
        this.recordsFiltered = recordsFiltered;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}